{extend name="public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="tabs-wrapper">
			<ul class="nav nav-tabs">
				<li class="active">
					<a href="{:url('cashdetail',array('id'=>$id))}">账单详情</a>
				</li>
				<li >
					<a href="{:url('orderlog',array('id'=>$id))}">订单明细</a>
				</li>
			</ul>
			<style>
			.bill-cell label {
				font-size: 14px;
				font-weight: bold;
			}
			.bill-cell .value {
				font-size: 16px;
				margin: 10px 0;
			}
			.bill-cell .remark-lines {
				line-height: 1.7em;
				color: #666;
			}
			</style>
			<div class="tab-content">
					<div class="tab-pane fade in active" id="tab-home">
					
						<div class="row">
							<div class="col-sm-6">
								<div class="bill-cell">
									<label data-bind="html: user.type_text">渠道</label>
									<div class="value">
										<span data-bind="html: user.nickname">{$info.uid|get_username}</span>				
									</div>
								</div>
							</div>
							<div class="col-sm-6">
								<div class="bill-cell">
									<label>日期</label>
									<div class="value">
										<span class="text-primary" data-bind="date: start_date">{$info.create_time|date='Y-m-d',###}</span>
									</div>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-sm-6">
								<div class="bill-cell">
									<label>帐单金额</label>
									<div>
										<span class="amount">¥<span >{$info.balmoney|number_format=###,2}</span></span>
									</div>
									<div class="remark-lines">
										总订单数: <span data-bind="html: total_orders">{$info.num}</span><br>
										充值总额: ¥<span data-bind="price: total_order_amount">{$info.money|number_format=###,2}</span><br>
										佣金比例: <span data-bind="html: commission_rate">{$info.percentage}</span>
									</div>
								</div>
							</div>
							<div class="col-sm-6">
								<div class="bill-cell">
									<label>打款方式</label>
									<div class="bill-bank-info value">
									{if $member.payment_type =='bank'}
										<div style="margin-bottom:5px;" class="text-primary">银行卡</div>
										<div >
											<label>
												<span style="vertical-align:middle;"
												>{if $member.is_company==1}公司名称{else}姓名{/if}</span>:
											</label>
											<span data-bind="text: user.card_holder_name" style="vertical-align:middle;">{$member.card_holder_name}</span>
											{if $member.is_company==1}
											<span class="label label-sm label-warning">对公</span>
											{/if}
											<br>
											<label>卡号: </label><span data-bind="text: user.card_number">{$member.card_number}</span><br>
											<label>银行: </label><span >{$member.card_bank_name}</span> <span >{$member.card_bank_branch}</span><br>
										</div>
									{elseif $member.payment_type =='alipay'}
										<div style="margin-bottom:5px;" class="text-primary">支付宝</div>
										<div >
											<label>姓名: </label><span >{$member.alipay_account_name}</span><br>
											<label>帐号: </label><span >{$member.alipay_account_number}</span><br>
										</div>
									{elseif $member.payment_type =='weixin'}
										<div style="margin-bottom:5px;" class="text-primary">微信</div>
										<div >
											<label>微信号: </label><span >{$member.weixin_account}</span><br>
											<label>昵称: </label><span>{$member.weixin_nickname}</span><br>
										</div>
									{/if}
									</div>
								</div>
							</div>
						</div>






					</div>
			</div>
		</div>
	</div>
</div>

{/block}